// #include <arrow_fill_c.h>
#include <arrow_fill_cc.h>

int main(int argc, char *argv[]) {
    // CgoArrowArray array = GoFillInts(1);
    CxxArrowArray cxx_array = cxx_fill_ints(true);

    {
        printf("---------------C print-----------------\n");

        if(cxx_array.null_bitmap!=NULLPTR) {
        printf("null_bitmap: length=%ld\n", cxx_array.len_null_bitmap);
        printf("null_bitmap:  十进制 [");
        for(int i =0; i < cxx_array.len_null_bitmap; i++) {
            // %o 八进制
            printf("%d ", cxx_array.null_bitmap[i]);
        }
        printf("]\n");
        printf("address: %p\n", cxx_array.null_bitmap);
        }
        printf("data: length=%ld\n", cxx_array.len_data);
        printf("data:  十进制 [");
        for(int i =0; i < cxx_array.len_data; i++) {
            printf("%d ", cxx_array.data[i]);
        }
        printf("]\n");
        printf("address: %p\n", cxx_array.data);
    }

    return 0;
}
